package JD_CAST_COL_MUST;

import java.util.HashMap;
import java.util.Map;

public class Vulnerable_01 {
    protected static final String NAME = "name";
    protected static final String ADDRESS = "address";
    private static final Map<String, Object> map = new HashMap<String, Object>();
    public void setInfo(String name, String addr) {
        map.put(ADDRESS, addr);
        map.put(NAME, name);
    }
    public void getInfo() {
        Test test = new Test();
        test.setInfo("me", "Delhi");
        System.out.println("Address==>"+(String)map.get(ADDRESS));
        System.out.println("Name==>"+(Number)map.get(NAME));
    }
}
